package top.toknow.framework.pojo.annotation;

import top.toknow.framework.annotation.FieldAndMethod;
import top.toknow.framework.annotation.FieldAnno;
import top.toknow.framework.annotation.MethodAnno;
import top.toknow.framework.annotation.TypeAnno;

/**
 * @desc 描述
 * create on 2018/10/31 by watson
 */
@TypeAnno
public class FieldAndMethodTest {

    @FieldAnno(desc = "小明")
    private String name;

    @FieldAndMethod("10")
    private String age;

    @FieldAndMethod("testValue")
    public String test(Integer index, String value){
        return index + value;
    }

    @MethodAnno("/index")
    public String index(String str){
        return str;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
